//
//  UseRuleTableViewCell.m
//  FaceTo
//
//  Created by 程邦明 on 2017/8/11.
//  Copyright © 2017年 chengbangming. All rights reserved.
//

#import "UseRuleTableViewCell.h"

@implementation UseRuleTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self initUI];
    }
    return self;
}
- (void)initUI{
    _lineView = [[UIView alloc]init];
    _lineView.backgroundColor = Color(238, 238, 238);
    [self addSubview:_lineView];
    
    _shopInfoLabel = [[UILabel alloc]init];
    _shopInfoLabel.textAlignment = NSTextAlignmentLeft;
    _shopInfoLabel.font = [UIFont systemFontOfSize:15];
    _shopInfoLabel.text = @"商品信息：介绍商品详细信息介绍上牌";
    _shopInfoLabel.textColor = Color(51, 51, 51);
    [self addSubview:_shopInfoLabel];
    
    _UseRuleLabel = [[UILabel alloc]init];
    _UseRuleLabel.textAlignment = NSTextAlignmentLeft;
    _UseRuleLabel.font = [UIFont systemFontOfSize:15];
    _UseRuleLabel.text = @"使用说明：介绍商品详细信息介绍上牌";
    _UseRuleLabel.textColor = Color(51, 51, 51);
    [self addSubview:_UseRuleLabel];
    
    [_lineView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.offset(0);
        make.right.offset(0);
        make.top.offset(0);
        make.height.mas_equalTo(5);
    }];
    
    [_shopInfoLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.offset(30);
        make.right.offset(30);
        make.top.equalTo(_lineView.mas_bottom).with.offset(20);
        make.height.mas_equalTo(17);
    }];
    
    [_UseRuleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(_shopInfoLabel.mas_left);
        make.right.offset(30);
        make.top.equalTo(_shopInfoLabel.mas_bottom).with.offset(15);
        make.height.mas_equalTo(17);
    }];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
